﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Numerics;

namespace jindong
{
    public class Order
    {
        /// <summary>
        /// 订单号
        /// </summary>
        [Key]
        [Column]
        
        public string? Order_id { get; set; }

        [Column]
        /// <summary>
        /// ⽤户ID
        /// </summary>
        public Guid User_id { get; set; }

        [Column]
        /// <summary>
        /// ⽀付⽅式
        /// </summary>
        public bool payment_method { get; set; }

        [Column]
        /// <summary>
        /// 订单总额
        /// </summary>
        public decimal total_amount { get; set; }

        [Column]
        /// <summary>
        /// 收货地址ID
        /// </summary>
        public BigInteger address_id { get; set; }

        [Column]
        /// <summary>
        /// 状态
        /// </summary>
        public string? order_status { get; set; }

        [Column]
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime create_time { get; set; }
    }
}
